package com.wn.common;

public interface RedisConst {
    /**
     * 图书分类key
     */
    String BOOK_TYPE_LIST = "bookType:list";
    /**
     * 图书缓存key
     */
    String BOOK_LIST = "book:list";
    /**
     * 缓存单本书籍
     */
    String BOOK_DETAIL = "book:detail";
    /**
     * 用户验证码
     */
    String USER_VALIDATE_CODE = "user:code";
    /**
     * 登录token前缀
     */
    String USER_TOKEN_PREFIX = "user:token";
    /**
     * 购物车的前缀
     */
    String USER_CART_PREFIX = "user:cart";
    /**
     * 缓存省份
     */
    String PROVINCES = "address:provinces";
    /**
     * 缓存中国省市区
     */
    String CHINA_CACHE = "china:cache";
    /**
     * 生成订单幂等检查key前缀
     */
    String ORDER_IDEMPOTENT_PREFIX = "order:idempotent";
    /**
     * 保存用户详情
     */
    String USER_DETAIL = "user:detail";
    /**
     * 短信验证码
     */
    String SHORT_MESSAGE_SERVICE = "sms:telephone";
    /**
     * 用户购物车过期时间
     */
    int USER_CART_EXPIRE = 7;
    /**
     * 邮箱验证码
     */
    String EMAIL_ADDRESS_PREFIX = "user:email";
    /**
     * 邮箱验证码过期时间
     */
    int EMAIL_CODE_EXPIRE = 15;
    /**
     * 图书库存key
     */
    String BOOK_STORAGE = "book:storage";
    /**
     * 分布式锁的前缀
     */
    String LOCK_PREFIX = "lock";
    /**
     * 查询订单
     */
    String QUERY_ORDER_PREFIX = "order:query";
    /**
     * 用户收藏
     */
    String FAVORITE = "user:favorite";
    /**
     * 城市
     */
    String CITIES = "address:cities";
    /**
     * 区域
     */
    String DISTRICTS = "address:districts";
}